<include file="Public:header" title="科目管理 - 组别管理" />
<h2>科目管理</h2>
<span>当前共有 <{$count.count}> 个科目</span>
<form method="post" action="<{:U('addGroup?type=3')}>" onSubmit="return post_form('<{:U('addGroup?type=3')}>',this,'addTips');" style="height:40px;">
<div class="fl"><label for="addSubjectName">科目名</label><input id="addSubjectName" type="text" name="cname" placeholder="科目名" class="text" />
<input type="submit" value="添加科目" class="btn" /></div> <div id="addTips" class="tip fl" style="margin-top:2px;">添加提示</div>
</form>
<table style="width: 100%;">
  <thead>
    <tr>
      <td style="min-width: 3%;text-align:center;">#</td>
      <td style="text-align:center;">科目名</td>
	  <td style="text-align:center;">操作</td>
    </tr>
  </thead>
  <tbody id="SubjectsTable">
  <volist name="subjects" id="vo" key="i">
    <tr>
      <td style="text-align:center;"><{$vo.id}></td>
      <td style="text-align:center;"><{$vo.cname}></td>
	  <td style="text-align:center;"><a class="editSubject" href="<{:U('editSub?id='.$vo['id'])}>">编辑</a>&nbsp;&nbsp;<a class="delUser" href="javascript:delGroup(3,<{$vo.id}>);">删除</a></td>
    </tr>
  </volist>
  </tbody>
</table>
<div class="pageSwitcher"><{$page}></div>
<include file="Public:footer" />